import { createRouter, createWebHistory } from 'vue-router';
import TaskList from '@/views/TaskList.vue';
import AddTask from '@/views/AddTask.vue';
import RecycleBin from '@/views/RecycleBin.vue'; // 导入回收站组件
//页面跳转
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'TaskList',
      component: TaskList,
    },
    {
      path: '/add-task',
      name: 'AddTask',
      component: AddTask,
    },
    {
      path: '/recycle-bin', // 回收站路由
      name: 'RecycleBin',
      component: RecycleBin,
    },
  ],
});

export default router;